-- GENERATED SPELL FOR [Vindicator Sedai] --


function spell0_17404(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(13005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17404', 6268, 1)
end

function spell1_17404(pUnit, Event) --@Holy Fire,n/a--
pUnit:FullCastSpellOnTarget(17141,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17404', 13000, 1)
end

function spell2_17404(pUnit, Event) --@Holy Shock,n/a--
pUnit:FullCastSpellOnTarget(27174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17404', 0, 1)
end

function Sorts_17404(pUnit, Event)
local choix_sorts_17404 = math.random(0, 2)
if choix_sorts_17404 == 0 then
pUnit:RegisterEvent('spell0_17404', 1, 1)
end
if choix_sorts_17404 == 1 then
pUnit:RegisterEvent('spell1_17404', 1, 1)
end
if choix_sorts_17404 == 2 then
pUnit:RegisterEvent('spell2_17404', 1, 1)
end
end

function mob17404_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17404', math.random(1500, 3000), 1)
end

function mob17404_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17404_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17404_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17404, 1, 'mob17404_Action')
RegisterUnitEvent(17404, 2, 'mob17404_Leave')
RegisterUnitEvent(17404, 3, 'mob17404_Kill')
RegisterUnitEvent(17404, 4, 'mob17404_Die')
